import request from '@/utils/request'
// 获取客户列表
export function getClientsList(params) {
  return request.get('/clients', { params })
}
// 获取客户数量
export function getClientsCount() {
  return request.get('/clients/count')
}
// 新建客户
export function addClientsList(data) {
  return request.post('/clients', data)
}
// 删除客户
export function delClients(id) {
  return request.delete(`/clients/${id}`)
}
// 获取指定客户数据
export function getClientsDetail(id) {
  return request.get(`/clients/${id}`)
}
// 编辑客户
export function editClients(data) {
  return request.put(`/clients/${data.id}`, data)
}
